package com.game.raceroom.player.effect
{
	import flash.display.MovieClip;
	
	import com.game.raceroom.TyroRoom;
	public class HintItemEffect{
         public var x:Number,y:Number;
         private var room:TyroRoom;
         private var mc:MovieClip;
		 public function HintItemEffect(room:TyroRoom,x:Number,y:Number,mc:MovieClip)
		 {  
		 	this.room=room;
            this.x=x;
            this.y=y;
            this.mc=mc;  
            room.bgCanvas.addChild(mc);
            mc.play();
		 }

         
         public  function update():void{

            mc.x=x-room.mapContrl.mapDisp.screen_start_x;
            mc.y=y-room.mapContrl.mapDisp.screen_start_y;
            //trace(mc.width);
         }
         public  function destroy():void{
            room.bgCanvas.removeChild(mc);
            mc.stop();
         }  
 
	}
}